# -*- coding: utf-8 -*-
# @Time    : 2021/9/27 14:42
# @Author  : xiao
from basic.WebUIParent import WebUIParent
from basic.device.Web import *


class PolicyPage(WebH5):

    #page地址
    URL="https://nnapp.cloudbae.cn:38080/apply/api/v1/policy/"
    # 首页惠企政策第二个tab
    Tab = "/html/body/my-app/ui-app/ui-router/ui-view/ng-component/ui-page/ui-content/div[2]/div/ui-scroll-tab/div/div[1]/ui-scroll-tab-button[2]"
    #title
    Title='/html/body/my-app/ui-app/ui-router/ui-view/ng-component/ui-page/ui-content/div[2]/div/ui-collection/div/ui-collection-item[2]/ui-scroll/ui-list/ui-list-item[1]/div/div[1]/div[1]'


    @classmethod
    def clickBtn(self):
        self.driver.get(self.URL)
        a=self.driver.find_element_by_xpath(self.Tab)
        a.click()

    @classmethod
    def getTabName(self):
        a=self.driver.find_element_by_xpath(self.Title).text
        return a